// 登录请求参数
export interface ILoginParams {
  Account: string;
  Password: string;
  Tenant?: string;
}

// 登录返回值
export interface ILoginResult {
  access_token: string;
  expires_in: number;
  refresh_token: string;
  token_type: string;
}

export interface IMenu {
  Icon: string
  Id: string
  ShowOnMenu: boolean
  Text: string
  ParentId?: string
  Url?: string
}
// 用户信息
export interface IUserInfo {
  Attributes: {
    // 菜单
    Menus: IMenu[]
    // 权限操作列表
    Actions?: string[]
    [key: string]: any;
  }
  Groups: {
    [key: string]: any;
  };
  ITCode: string;
  Name: string;
  PhotoId: string;
  RemoteToken: string;
  Roles: {
    [key: string]: string;
  };

  TimeTick: number;
  UserId: string;
}